#!/bin/bash
if [[ 1 -eq 1 ]]; then echo "1 -eq 1 result is: true"; fi
# Output: 1 -eq 1 result is: true
# 写成多行
if [[ "abc" -eq "abc" ]]
then
  echo ""abc" -eq "abc" result is: true"
fi
# Output: abc -eq abc result is: true

if [[ 1 -eq 1 ]]; then echo "1 -eq 1 的结果是: true"; fi
if [[ "abc" -eq "abc" ]]
then
  echo '"abc" -eq "abc" 的结果是： true'
fi

echo "我是分割线-------------------------------------------"


echo "判断2是否小于1( 2 -ne 1)"

if [[ 2 -ne 1 ]]; then
  echo "2小于1"
else 
  echo "2不小于1"
fi
